package com.xzc.refactory.object.inlineClass.c2;

public class Person {
    private String _name;
    private TelephoneNumber _officeTelephone = new TelephoneNumber();

    public String get_name() {
        return _name;
    }

    public String get_officeAreaCode() {
        return _officeTelephone.get_areaCode();
    }

    public String get_officeNumber() {
        return _officeTelephone.get_number();
    }

    public TelephoneNumber get_officeTelephone() {
        return _officeTelephone;
    }

    //将原本使用TeleNumber类的调用转换为使用Person类调用
    public String getTelephoneNumber() {
        return _officeTelephone.getTelephoneNumber();
    }

    public String get_areaCode() {
        return _officeTelephone.get_areaCode();
    }

    public void set_areaCode(String _areaCode) {
        _officeTelephone.set_areaCode(_areaCode);
    }

    public String get_number() {
        return _officeTelephone.get_number();
    }

    public void set_number(String _number) {
        _officeTelephone.set_number(_number);
    }
}
